<template>
  <div class="address-info">
    <div>
      <p>收<span/>货<span/>人:</p>
      <p>{{ data.receiver }}</p>
    </div>
    <div>
      <p>联系方式:</p>
      <p>{{ data.contact }}</p>
    </div>
    <div>
      <p>收货地址:</p>
      <p>{{ data.fullLocation }}</p>
    </div>
  </div>
</template>

<script lang="ts"
        setup>
import type {Address} from '@/types/cart'

defineProps<{
  data: Address
}>()
</script>

<style lang="less"
       scoped>
.address-info {
  > div {
    display: flex;
    align-items: center;
    height: 30px;

    p:nth-of-type(1) {
      width: 70px;
      margin-right: 10px;
      color: #999999;

      span {
        display: inline-block;
        width: .5em;
      }
    }
  }
}
</style>